import { Component } from 'react'
// import { connect } from 'react-redux'
import { View } from '@tarojs/components'

// import { add, minus, asyncAdd } from '../../actions/counter'
//引入首页中的模块
import HomeHeader from './homeHeader'
import TabBar from './tabBar'
import HomeSwiper from './homeSwiper'
import IdexIcon from './indexIcon'
import HomeMidCon from './homeMidCon'

import './index.less'



class Index extends Component {
  // componentWillReceiveProps (nextProps) {
  //   console.log(this.props, nextProps)
  // }

  // componentWillUnmount () { }

  // componentDidShow () { }

  // componentDidHide () { }

  render () {
    return (
      <View className='index'>
          <HomeHeader />
          <HomeSwiper />
          <IdexIcon /> 
          <HomeMidCon />
          <TabBar />  
      </View>
    )
  }
}

export default Index

